package part_3;

public class Cards {

	public static void main(String[] args) {
		System.out.println("The number on the card is :" + draw(false));
		System.out.println("And the suit is :" + draw(true));
	}
	/*
	 * Draw a cardnumber or suit
	 * 
	 * pass if it should be a suit or not (suit/number)
	 * returns the number er or suit in a int
	 */
	public static int draw(boolean suit){
		if(suit) {
			//draw a suit
			return ((int) Math.round(Math.random()*3));
		} else {
			//Draw a card number
			return (int) Math.round((Math.random()*12) + 1);
		}
	}
}
